const Router = require("koa-router");
const router = new Router();

const users = require("./users");
const operationsfile = require("./operationsfile");
const folder = require("./folder");
const myfile = require("./myfile");
const fileUploadDownload = require("./fileUploadDownload");


// 注册用户管理路由
router.use("/users", users.routes(), users.allowedMethods());
router.use("/network",operationsfile.routes(),operationsfile.allowedMethods());
router.use("/folder", folder.routes(), folder.allowedMethods());
router.use("/myfile", myfile.routes(), myfile.allowedMethods());
router.use("/fileUploadDownload", fileUploadDownload.routes(), fileUploadDownload.allowedMethods());



// 重定向示例（如果需要）
// router.redirect("/", "/home");

module.exports = router;
